import {requestForm8082} from './requestForm8082.ts';
import axios, {post} from "axios";
import {Ref, ref} from "vue";


export function testPostRequestParam(data) {
    let url = "/user-server/user/testRequestParam"
    return requestForm8082({
        url: url,
        method: 'post',
        data
    })
}

export function testPostRequestBody(data) {
    let url = "/user-server/user/testRequestBody"
    return requestJson({
        url: url,
        method: 'post',
        data
    })
}

export function assignTask(data) {
    let url = "/task-server/task/assign"
    return requestJson({
        url: url,
        method: 'post',
        data
    })
}

export function shopOnShelf(shopId,itemId) {
    let url='/shop/onShelf/'+shopId+'/'+itemId
    return requestForm8082({
        url: url,
        method: 'get'
    })
}